package com.lgrglw.search.ke.mapping;

import org.compass.annotations.Index;
import org.compass.annotations.Searchable;
import org.compass.annotations.SearchableId;
import org.compass.annotations.SearchableProperty;
import org.compass.annotations.Store;

/**
 * 知识搜索的章节对象
 * 
 * @author liwei
 * 
 */
@Searchable
public class ChapterSearchEntity {

	public static String alias = "chaptersearchentity";
	/**
	 * 搜索的索引ID
	 */
	@SearchableId
	private String id;
	/**
	 * 所属区域
	 */
	@SearchableProperty(index = Index.NOT_ANALYZED, store = Store.YES)
	private Integer area;
	/**
	 * 点击次数
	 */
	@SearchableProperty(index = Index.NOT_ANALYZED, store = Store.YES)
	private Integer visitCount = 0;

	/**
	 * 所属的知识的ID
	 */
	@SearchableProperty(index = Index.NOT_ANALYZED, store = Store.YES)
	private String docId;
	/**
	 * 章节的标题
	 */
	@SearchableProperty(index = Index.ANALYZED, store = Store.YES, boost = 5.0f)
	private String menuTitle;
	/**
	 * 章节的内容
	 */
	@SearchableProperty(index = Index.ANALYZED, store = Store.YES)
	private String content;
	/**
	 * 章节下面附件的内容
	 */
	@SearchableProperty(index = Index.ANALYZED, store = Store.YES)
	private String accessoryConent;
	/**
	 * 章节关键词
	 */
	@SearchableProperty(index = Index.ANALYZED, store = Store.YES, boost = 8.0f)
	private String keywords;
	/**
	 * 章节的ID
	 */
	@SearchableProperty(index = Index.NO, store = Store.YES)
	private String menuId;

	public String getAlias() {
		return alias;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getArea() {
		return area;
	}

	public void setArea(Integer area) {
		this.area = area;
	}

	public Integer getVisitCount() {
		return visitCount;
	}

	public void setVisitCount(Integer visitCount) {
		this.visitCount = visitCount;
	}

	public String getDocId() {
		return docId;
	}

	public void setDocId(String docId) {
		this.docId = docId;
	}

	public String getMenuTitle() {
		return menuTitle;
	}

	public void setMenuTitle(String menuTitle) {
		this.menuTitle = menuTitle;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAccessoryConent() {
		return accessoryConent;
	}

	public void setAccessoryConent(String accessoryConent) {
		this.accessoryConent = accessoryConent;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

}
